package com.chinasoft04.mall.service;

import com.chinasoft04.mall.dto.AuthL;
import com.chinasoft04.mall.dto.AuthT;
import com.chinasoft04.mall.pojo.AuthMainTab;
import com.chinasoft04.mall.dto.AuthRoleDto;
import java.util.List;


public interface AuthService {

     List<AuthMainTab> getMainTabByIds(String ids);

     String getPsIdsByMgId(Integer mg_id);

     List<AuthRoleDto> getAllRoleWithChildren();

    boolean addRole(AuthRoleDto role);

    AuthRoleDto getRoleDtoByRoleIdWithoutChildren(Integer id);

    boolean updateRoleByRoleId(AuthRoleDto roleDto);

    boolean deleteRoleByRoleId(Integer id);

    List<AuthL> getPermissionByList(Integer mg_id);

    List<AuthT> getPermissionByTree();

    boolean replaceAuthByRidsAndRoleId(Integer roleId, String rids);

    boolean deleteAAuthByRoleIdAndRightId(Integer roleId, Integer rightId);

    int checkAuthByRole(Integer roleId);

    AuthRoleDto getRoleDtoWithChildrenByRoleId(Integer roleId);
}
